package com.taxi.controller;

import com.taxi.result.Result;
import com.taxi.service.DistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DistrictController {
    @Autowired
    private DistrictService districtService;
    @GetMapping("/district")
    public Result getDistrictInfo(){
        return districtService.getDistrictInfo();
    }
}